package com.sugon.dao;

import com.sugon.entity.SparePartRequEntity;
import org.apache.ibatis.annotations.Param;

/**
 * 备件需求计划Dao
 *
 * @author sugon
 * @date 2019-08-02 14:31:17
 */
public interface SparePartRequDao extends BaseDao<SparePartRequEntity> {

    /**
     * 查询匹配的最大计划编码值
     *
     * @param planCode 计划编码
     * @return
     */
    String queryMatchedMaxPlanCode(@Param("planCode") String planCode);

    /**
     * 回填备件需求计划的OA审批流程实例ID
     *
     * @param id         备件需求计划ID
     * @param procInstId 流程实例ID
     * @return
     */
    int updateProcInstId(@Param("id") String id, @Param("procInstId") String procInstId);

}
